import DFS from './utils/DFS';
import Topology from './utils/Topology';

function DFSIsLoop(edges) {
	const dfs = new DFS();
	const result = dfs.isLoop(edges);
	return result;
}

function TopologyIsLoop(edges) {
	const topology = new Topology();
	const result = topology.isLoop(edges);
	return result;
}

export default {
	DFSIsLoop,
	TopologyIsLoop
}
